package duotai;

import java.util.Scanner;

public class Test {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        Land land = new Land();

        System.out.println("请选择你要种植的植物：");
        System.out.println("1.苹果树 2.玉米树 3.香梨树");
        int choice = input.nextInt();
        Crop crop=    land.getCrop(choice);
        land.plant(crop);// Crop a= new Corn();
//        land.plant(crop); //Crop a= new AppleTree();
//        land.printCrop();

        //使用植物
        land.useCrop();

    }
}
